import java.util.HashMap;
import java.util.Map;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
@Deprecated
public class BeanFactory {
    private Map<String,Object> beanMap=new HashMap<>();

    public void registerBean(String name,Object bean){
        beanMap.put(name,bean);
    }

    public Object getBean(String name){
        return beanMap.get(name);
    }
}
